[PATCH] duphandle: also init netrc
authorDaniel Stenberg <daniel@haxx.se>
Thu, 7 Nov 2024 07:52:38 +0000 (08:52 +0100)
committerSamuel Henrique <samueloph@debian.org>
Sat, 9 Nov 2024 17:34:22 +0000 (17:34 +0000)
commit558ff0f22e4babf94fe5ee5c438be3fa7688b73a
tree1826f2aae2396c8880fb4818f0ab5c73e30cff1f
parente823ea2edab17e1a3331781f43aede8dd4c4701d
[PATCH] duphandle: also init netrc

The netrc init was only done in the Curl_open, meaning that a duplicated
handle would not get inited properly.

Added test 2309 to verify. It does netrc auth with a duplicated handle.

Regression from 3b43a05e000aa8f65bda513f733a

Reported-by: tranzystorekk on github
Fixes #15496
Closes #15503

Gbp-Pq: Name duphandle_also_init_netrc.patch
lib/easy.c
tests/data/Makefile.am
tests/data/test2309 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib2309.c [new file with mode: 0644]